import { BullModule } from "@nestjs/bullmq";
import { Module } from "@nestjs/common";
import { SysLogCreateProcessor } from "./processor/sys-log-create.processor";
import { SysLogToEsProcessor } from "./processor/sys-log-to-es.processor";
import { SysLogService } from "./sys-log.service";

@Module({
    imports: [BullModule.registerQueue({ name: "sysLogQueue" }, { name: "sysLogToEsQueue" })],
    providers: [SysLogService, SysLogCreateProcessor, SysLogToEsProcessor],
    exports: [SysLogService, BullModule],
})
export class SysLogModule {}
